﻿using UnityEngine;

namespace TC
{
    public class GetIntArray_blueprint : TranslateBlueprint
    {
        public override editor.cfg.blueprint.Node OnTranslate(Node node)
        {
            GetObject<int[]> t = node as GetObject<int[]>;

            Port p = t.graph.GetConnect(t.keyIn);
            Debug.Assert(p == null, "dont support key from output");
            //
            editor.cfg.blueprint.GetIntArrayVar re = new editor.cfg.blueprint.GetIntArrayVar();
            re.id = t.id;
            re.fromCommonArea = false;
            re.varName = t.keyIn.defaultValue;
            re.output = t.valueOut.name;

            return re;
        }
    }
}
